
public class Point {
	private double x, y;

	public Point(Point p) {
		this.x = p.getX();
		this.y = p.getY();
	}
	public Point(double x, double y) {
		this.x = x;
		this.y = y;
	}

	public void setX(double x) {
		this.x = x;
	}
	public void setY(double y) {
		this.y = y;
	}

	public double getX() {
		return x;
	}
	public double getY() {
		return y;
	}

	public String toString() {
		return "(" + this.x + ", " + this.y +")";
	}
}
